from ultralytics import YOLO
import pyrealsense2 as rs
import numpy as np
import cv2 
import time
import serial
import torch 


if __name__ == '__main__':
    myserial = serial.Serial(port="/dev/ttyUSB0",baudrate=115200)
    while 1:
        myserial.write('R'.encode('utf-8'))
        print(f"Sent to serial: {'R'.strip()}")
    print('exit')
